package cn.firstquestion;

public class Person {
    private String name;
    
    public Person(){
        
    }

    public Person(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    
    public void show(Animal animal){
        System.out.println(name+"正在喂:");
      animal.eat();
    }
}
